import { Application } from "egg";

export default (app: Application) => {
    const { router, controller } = app;
    // const checktoken = app.middleware.checktoken();
    router.post('/api/admin/login', controller.ctrlAdmin.login);
    router.post('/api/admin/register', controller.ctrlAdmin.register);

};
